﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="createUserAccount.aspx.cs" Inherits="SWENAssignment.createUserAccount" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">

        .auto-style3 {
            height: 184px;
        }
        .auto-style4 {
            font-size: large;
        }
        .auto-style5 {
            height: 23px;
        }
        .auto-style1 {
            width: 100%;
        }
        .auto-style6 {
            height: 26px;
        }
        .auto-style7 {
            text-decoration: underline;
        }
        .auto-style8 {
            width: 950px;
            height: 280px;
        }
        .auto-style9 {
            height: 30px;
        }
    </style>
</head>
<body style="background-color: #CCFFCC">
    <form id="form1" runat="server">
    <div>
    
        <table class="auto-style1">
        <tr>
            <td class="auto-style3" colspan="4">
                <img alt="banner" class="auto-style8" src="../Images/jjw-dona-filipa-hotel-home-banner-01.jpg" /></td>
        </tr>
        <tr>
            <td class="auto-style4" colspan="4"><strong>WELCOME TO DELONIX REGIA HOTEL MANAGEMENT SYSTEM</strong></td>
        </tr>
        <tr>
            <td class="auto-style5" colspan="4"></td>
        </tr>
        <tr>
            <td class="auto-style5" colspan="4">
                <asp:Menu ID="Menu1" runat="server" style="font-size: large; font-weight: 700">
                    <Items>
                        <asp:MenuItem NavigateUrl="~/Homepage.aspx" Text="Homepage" Value="Homepage"></asp:MenuItem>
                        <asp:MenuItem NavigateUrl="~/HuiYi/createUserAccount.aspx" Text="Create User Account" Value="Create User Account"></asp:MenuItem>
                        <asp:MenuItem NavigateUrl="~/HuiYi/retrieveUserAccount.aspx" Text="Retrieve User Account" Value="Retrieve User Account"></asp:MenuItem>
                        <asp:MenuItem NavigateUrl="~/HuiYi/updateUserAccount.aspx" Text="Update User Account" Value="Update User Account"></asp:MenuItem>
                        <asp:MenuItem NavigateUrl="~/HuiYi/deleteUserAccount.aspx" Text="Delete User Account" Value="Delete User Account"></asp:MenuItem>
                    </Items>
                </asp:Menu>
            </td>
        </tr>
        <tr>
            <td class="auto-style5" colspan="4">&nbsp;</td>
        </tr>
        <tr>
            <td colspan="4" class="auto-style7"><strong>User Accounts Management</strong></td>
        </tr>
        <tr>
            <td colspan="4">&nbsp;</td>
        </tr>
        <tr>
            <td colspan="4">Create User Account</td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td>User Type:</td>
            <td>
                <asp:DropDownList ID="ddlUserType" runat="server">
                    <asp:ListItem>Administrator</asp:ListItem>
                    <asp:ListItem>Management</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td class="auto-style5">Login ID:</td>
            <td class="auto-style5">
                <asp:TextBox ID="tbxLoginID" runat="server"></asp:TextBox>
            </td>
            <td class="auto-style5"></td>
            <td class="auto-style5"></td>
        </tr>
        <tr>
            <td class="auto-style9">Password:</td>
            <td class="auto-style9">
                <asp:TextBox ID="tbxPassword" runat="server" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbxPassword" ErrorMessage="Please enter password" ForeColor="Red">Please enter password</asp:RequiredFieldValidator>
            </td>
            <td class="auto-style9"></td>
            <td class="auto-style9"></td>
        </tr>
        <tr>
            <td class="auto-style9">Confirmed password:</td>
            <td class="auto-style9">
                <asp:TextBox ID="tbxPassword2" runat="server" TextMode="Password"></asp:TextBox>
                <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="tbxPassword" ControlToValidate="tbxPassword2" ErrorMessage="Please enter the same password" ForeColor="Red"></asp:CompareValidator>
            </td>
            <td class="auto-style9"></td>
            <td class="auto-style9"></td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td class="auto-style6">Last Name:</td>
            <td class="auto-style6">
                <asp:TextBox ID="tbxLastName" runat="server"></asp:TextBox>
            </td>
            <td class="auto-style6"></td>
            <td class="auto-style6"></td>
        </tr>
        <tr>
            <td class="auto-style6">First Name:</td>
            <td class="auto-style6">
                <asp:TextBox ID="tbxFirstName" runat="server"></asp:TextBox>
            </td>
            <td class="auto-style6"></td>
            <td class="auto-style6"></td>
        </tr>
        <tr>
            <td>DOB:</td>
            <td>
                <asp:DropDownList ID="ddlDate" runat="server">
                    <asp:ListItem>1</asp:ListItem>
                    <asp:ListItem>2</asp:ListItem>
                    <asp:ListItem>3</asp:ListItem>
                    <asp:ListItem>4</asp:ListItem>
                    <asp:ListItem>5</asp:ListItem>
                    <asp:ListItem>6</asp:ListItem>
                    <asp:ListItem>7</asp:ListItem>
                    <asp:ListItem>8</asp:ListItem>
                    <asp:ListItem>9</asp:ListItem>
                    <asp:ListItem>10</asp:ListItem>
                    <asp:ListItem>11</asp:ListItem>
                    <asp:ListItem>12</asp:ListItem>
                    <asp:ListItem>13</asp:ListItem>
                    <asp:ListItem>14</asp:ListItem>
                    <asp:ListItem>15</asp:ListItem>
                    <asp:ListItem>16</asp:ListItem>
                    <asp:ListItem>17</asp:ListItem>
                    <asp:ListItem>18</asp:ListItem>
                    <asp:ListItem>19</asp:ListItem>
                    <asp:ListItem>20</asp:ListItem>
                    <asp:ListItem>21</asp:ListItem>
                    <asp:ListItem>22</asp:ListItem>
                    <asp:ListItem>23</asp:ListItem>
                    <asp:ListItem>24</asp:ListItem>
                    <asp:ListItem>25</asp:ListItem>
                    <asp:ListItem>26</asp:ListItem>
                    <asp:ListItem>27</asp:ListItem>
                    <asp:ListItem>28</asp:ListItem>
                    <asp:ListItem>29</asp:ListItem>
                    <asp:ListItem>30</asp:ListItem>
                    <asp:ListItem>31</asp:ListItem>
                </asp:DropDownList>
                <asp:DropDownList ID="ddlMonth" runat="server">
                    <asp:ListItem>Jan</asp:ListItem>
                    <asp:ListItem>Feb</asp:ListItem>
                    <asp:ListItem>Mar</asp:ListItem>
                    <asp:ListItem>Apr</asp:ListItem>
                    <asp:ListItem>May</asp:ListItem>
                    <asp:ListItem>Jun</asp:ListItem>
                    <asp:ListItem>Jul</asp:ListItem>
                    <asp:ListItem>Aug</asp:ListItem>
                    <asp:ListItem>Sep</asp:ListItem>
                    <asp:ListItem>Oct</asp:ListItem>
                    <asp:ListItem>Nov</asp:ListItem>
                    <asp:ListItem>Dec</asp:ListItem>
                </asp:DropDownList>
                <asp:TextBox ID="tbxYear" runat="server"></asp:TextBox>
                <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="tbxYear" ErrorMessage="Enter Year between 1955-1995" ForeColor="Red" MaximumValue="1995" MinimumValue="1955"></asp:RangeValidator>
            </td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td>Contact Number:</td>
            <td>
                <asp:TextBox ID="tbxContactNo" runat="server"></asp:TextBox>
            </td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td>Address:</td>
            <td>
                <asp:TextBox ID="tbxAddress" runat="server"></asp:TextBox>
            </td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td class="auto-style6">Email:</td>
            <td class="auto-style6">
                <asp:TextBox ID="tbxEmail" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="tbxEmail" ErrorMessage="Please enter email" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
            <td class="auto-style6"></td>
            <td class="auto-style6"></td>
        </tr>
        <tr>
            <td>Gender:</td>
            <td>
                <asp:RadioButtonList ID="rblGender" runat="server">
                    <asp:ListItem>Male</asp:ListItem>
                    <asp:ListItem>Female</asp:ListItem>
                </asp:RadioButtonList>
            </td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td class="auto-style6">Bank Account Type:</td>
            <td class="auto-style6">
                <asp:DropDownList ID="ddlBankAccType" runat="server">
                    <asp:ListItem>OCBC Savings</asp:ListItem>
                    <asp:ListItem>POSB/DBS Savings</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td class="auto-style6"></td>
            <td class="auto-style6"></td>
        </tr>
        <tr>
            <td>Bank Account Number:</td>
            <td>
                <asp:TextBox ID="tbxBankAccNo" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="tbxBankAccNo" ErrorMessage="Please enter bank account number" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>
                <asp:Button ID="btnCreate" runat="server" Text="Create" OnClick="btnCreate_Click" />
            </td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>
                <asp:Label ID="lblCreateSuccessfully" runat="server"></asp:Label>
                <br />
                <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="~/Homepage.aspx">Logout</asp:HyperLink>
            </td>
            <td>&nbsp;</td>
        </tr>
    </table>
    
    </div>
    </form>
</body>
</html>
